home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 045a / cdshare3.exe / CDSHARE.DOC < prev    next >
Text File  |  1991-08-23  |  57KB  |  1,651 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.                   CD-SHARE DEMONSTRATION SOFTWARE PACKAGE
  10.  
  11.                      By - Digital Solutions Pty. Ltd.
  12.  
  13.                           Release 1.0 August 1991
  14.  
  15.  
  16.      The programs  and documentation  packed with  this document  file
  17.      form  the  CD-SHARE  peer  to  peer  CD-ROM  networking  software
  18.      package.
  19.  
  20.      The demonstration package is a  generic version which will run on
  21.      any NETBIOS  compatible network.  It is  restricted in  that a CD
  22.      Server will  only accept a  log in  from one CD  Workstation at a
  23.      time, and the CD Redirector will only log into one CD Server at a
  24.      time.
  25.  
  26.      CD-SHARE sells for A$495.00  (i.e. Australian Dollars). For those
  27.      of  you  in  the  USA  the  current  exchange  rate  between  the
  28.      Australian and US dollar is about US$0.77 for A$1.00.
  29.  
  30.      If  you  have  any  questions  regarding  CD-SHARE  please  don't
  31.      hesitate to contact us at :
  32.  
  33.  
  34.      Digital Solutions Pty. Ltd.
  35.      P.O. Box 178
  36.      Margate
  37.      QLD, Australia 4019
  38.  
  39.      Ph  (07) 8838151   Intl (617) 8838151
  40.      Fax (07) 2831217   Intl (617) 2831217
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.                 CD SHARE - CD ROM NETWORK SHARING SOFTWARE
  84.  
  85.                                 Version 1.0
  86.  
  87.                                User's Manual
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.      Digital Solutions Pty. Ltd.
  122.      P.O. Box 178
  123.      Margate
  124.      QLD, Australia. 4019
  125.      Ph. 07 8831851 Intl. 617 8831852
  126.      Fax 07 2831217 Intl. 617 2831217
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                   Page 1
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.                              TABLE OF CONTENTS
  207.  
  208.      CONTENTS                                                    PAGE
  209.  
  210.      1.0 BACKGROUND                                               1
  211.  
  212.          1.1 THE CD-ROM SOFTWARE INTERFACE                        1
  213.  
  214.          1.2 CD-SHARE - WHAT IT IS AND WHY WE NEED IT             2
  215.  
  216.      2.0 CONFIGURING A CD-SERVER                                  5
  217.  
  218.      3.0 CONFIGURING A CD-WORKSTATION                             5
  219.  
  220.      4.0 COMMAND LINE SWITCHES                                    9
  221.  
  222.          4.1 CD MANAGER COMMAND LINE SWITCHES                     9
  223.  
  224.          4.2 CD REDIRECTOR COMMAND LINE                          11
  225.  
  226.          4.3 CD-SERVER COMMAND LINE SWITCHES                     11
  227.  
  228.      5.0 CACHING YOUR CD-ROM DRIVES - CD-CACHE                   13
  229.  
  230.      6.0 ADVANCED TOPICS                                         15
  231.  
  232.          6.1 MEMORY USAGE                                        15
  233.  
  234.          6.2 OPTIMIZING CD-SERVE PARAMETERS                      16
  235.              FOR A NON-DEDICATED SERVER
  236.  
  237.          6.3 OPTIMIZING CD-CACHE PARAMETERS                      17
  238.  
  239.          6.4 RUNNING CD-SERVE AND CD-CACHE IN DEDICATED MODE     19
  240.  
  241.      7.0 QUESTIONS AND ANSWERS                                   20
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                   Page 2
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.      1.0 BACKGROUND
  273.  
  274.      1.1 THE CD-ROM SOFTWARE INTERFACE
  275.  
  276.      When you purchase a CD-ROM drive  and controller card for your PC
  277.      you will usually also receive a disk containing a software device
  278.      driver  for the  drive and  a program  written by  MicroSoft Corp
  279.      called the "MS-DOS CD-ROM Extensions" (MSCDEX.EXE).
  280.  
  281.      Device drivers are programs that  are loaded by including them in
  282.      a line  in the CONFIG.SYS  file on  your DOS boot  disk. A device
  283.      driver is a software program  with a standard DOS interface which
  284.      allows DOS  to talk  to hardware  devices which  it knows nothing
  285.      about. Although you don't see it DOS actually talks to your disks
  286.      via an internal device driver !
  287.  
  288.      The device driver  supplied with your  CD-ROM drive(s) allows DOS
  289.      to interface  to the  CD-ROM drive  without actually  knowing the
  290.      hardware specifics of the drive. This is how DOS can interface to
  291.      various  different  brands  of  drives  with  different  hardware
  292.      interfaces -  it simply  talks via  the device  driver which does
  293.      know about the hardware.
  294.  
  295.      There are two different classes of device drivers - character and
  296.      block device drivers. An example of a character device driver are
  297.      the internal DOS  devices named CON (your  console) and PRN (your
  298.      LPT1) since they work a character at a time. Your disk drives are
  299.      block  devices since  they transfer  data to  and from  memory in
  300.      blocks (e.g. a typical  cluster (block) size for  a disk might be
  301.      2K bytes.  Character device drivers  and addressed  by name (e.g.
  302.      CON,  PRN,  COM1,  etc) whereas  block  type  device  drivers are
  303.      allocated a drive letter by DOS in the range A: to Z:.
  304.  
  305.      A single device driver can control a number of drives, in fact up
  306.      to 255. Since DOS  only allows block device  drive names A: to Z:
  307.      this limits the practical total number of drives to a total of 26
  308.      minus  any  physical  hard  and   floppy  disk  drives  that  are
  309.      installed.  If  you  had  two  floppy  disks  and  one  hard disk
  310.      installed (A;, B: and C:) and a device driver named 'DEVICED' was
  311.      installed  controlling 3  block devices  the  system would  be as
  312.      follows :
  313.                   ┌──── A:
  314.                   │
  315.                   ├──── B:
  316.                   │
  317.                   ├──── C:
  318.          DOS──────┤   ┌───────────┐    ┌──── E:
  319.                   │   │           │    │
  320.                   └───┤  DEVICED  ├────┼──── F:
  321.                       │           │    │
  322.                       └───────────┘    └──── G:
  323.  
  324.                                   Fig. 1
  325.  
  326.  
  327.                                   Page 3
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.      DOS automatically  gives block  devices the  next available drive
  339.      letter(s) when the  device driver is  installed in the config.sys
  340.      file.
  341.  
  342.      If CD-ROM's were normal block device that would be the end of the
  343.      story, however a single  CD-ROM can hold a  massive 550 MBytes of
  344.      information  - far  more than  DOS  was designed  to manage  on a
  345.      single block device. To  overcome this limitation MicroSoft wrote
  346.      some extensions  to DOS known  as the  "MS-DOS CD-ROM Extensions"
  347.      (MSCDEX). MSCDEX  uses the networking  drive redirection features
  348.      built into DOS versions  3.1 and later to  create a logical drive
  349.      for each  drive attached to  each device driver  specified on the
  350.      MSCDEX command  line when the  extensions are  started. MSCDEX is
  351.      not a device driver, it is  a "Terminate and Stay Resident" (TSR)
  352.      program which runs  and returns to  DOS but remains  in memory to
  353.      it's work in the background.
  354.  
  355.      So that CD-ROM device drivers won't  be installed by DOS as block
  356.      devices  the  device  driver  header  tells  DOS  that  they  are
  357.      character  devices  (even  though  they  aren't).  CD-ROM  device
  358.      drivers are block device drivers  that appear to DOS as character
  359.      devices but  have a  special signature  so that  MSCDEX and other
  360.      software wishing to talk to the  CD-ROM via the device driver can
  361.      recognize them as  CD-ROM devices. If  our previous example (Fig.
  362.      1)  of DOS  with a  three  drive device  driver were  replaced by
  363.      MSCDEX and a  device driver (CDDRIVER)  driving three CD-ROMS the
  364.      layout would now be as follows :
  365.      
  366.                   ┌──── A:
  367.                   │
  368.                   ├──── B:
  369.                   │
  370.                   ├──── C:
  371.          DOS──────┤   ┌──────────┐  ┌──────────┐  ┌──── E:
  372.                   │   │          │  │          │  │
  373.                   └───┤  MSCDEX  ├──┤ CDDRIVER ├──┼──── F:
  374.                       │          │  │          │  │
  375.                       └──────────┘  └──────────┘  └──── G:
  376.  
  377.                                   Fig. 2
  378.      
  379.      When MSCDEX or any other software calls a CD-ROM device driver it
  380.      specifies which drive (or unit) it wishes to access by specifying
  381.      a number beginning with zero. It  figure 2 the logical drives E:,
  382.      F: and G: would be drives 0,1 and 2 to CDDRIVER.
  383.  
  384.      1.2 CD-SHARE - WHAT IT IS AND WHY WE NEED IT
  385.  
  386.      As well as making CD-ROM's appear as normal (large capacity) disk
  387.      drives,   MSCDEX  supplies   a  number   of  other   services  to
  388.      applications  software  that   calls  MSCDEX  directly.  Although
  389.      networks such as ArtiSoft's LANtastic can redirect a CD-ROM drive
  390.      so that it  appears as an  extra drive on  a network workstation,
  391.  
  392.  
  393.                                   Page 4
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.      CD-ROM software that  requires MSCDEX to run  won't work. To make
  404.      matters  even   worse  some   CD-ROM  software   bypasses  MSCDEX
  405.      completely and talks directly to the CD-ROM device driver.
  406.  
  407.      This is where  CD-SHARE comes in.  The CD-SHARE software contains
  408.      CD-Server  and CDWORK/CD-Redirector.  CDServer  is a  TSR program
  409.      which is run on the network  computer which has the CD-ROM drives
  410.      fitted  and  the  appropriate  CD-ROM  device  drivers installed.
  411.      CDWORK.SYS and CD-Redirector are run on workstations which wishes
  412.      to access CD-ROM  devices on CD-Servers.  CDWORK.SYS appears as a
  413.      local CD-ROM device driver, however it passes and device requests
  414.      onto  CD-Redirector  which in  turn  passes the  requests  to the
  415.      appropriate CD-Server for processing.  The results of the request
  416.      are passed back to CD-Redirector/CDWORK.SYS  and then back to the
  417.      application  which  called   CDWORK.SYS  .  CDWORK.SYS  therefore
  418.      appears to  applications programs  (including MSCDEX)  as a local
  419.      CD-ROM device driver.
  420.  
  421.      The CD-Manager program  allows you to alter  the number of drives
  422.      that CDWORK.SYS appears to be controlling, and to connect each of
  423.      those  logical drives  to  a CD-ROM  drive  on a  network machine
  424.      running CD-SERVER.
  425.  
  426.      Because CD-ROM  seek times  and data  transfer rates  are so slow
  427.      sharing a single CD-ROM amongst  a number of users usually causes
  428.      applications on workstations to run unacceptably slow. Because of
  429.      this the CD-SHARE software suite  also includes CD-CACHE which is
  430.      a  CD-ROM  caching   program  written  specifically   to  run  in
  431.      conjunction with CD-SHARE. When  CD-CACHE running, when a request
  432.      to  read CD-ROM  data occurs  CD-CACHE  checks to  see if  it has
  433.      already been read. If  not then the data  is read from the CD-ROM
  434.      and  stored in  the cache  as well  as being  passed back  to the
  435.      calling software. If a  request for data which  is already in the
  436.      cache occurs  then the data  is returned directly  from the cache
  437.      without any access  at all to the  CD-ROM. The CD-CACHE algorithm
  438.      ensures that the most frequently read data (directories, etc) are
  439.      always kept in the cache,  this improves response times even when
  440.      only one users is running  programs from the CD-ROM. CD-CACHE can
  441.      use conventional or extended memory up to 32 MBytes.
  442.  
  443.      The networking version of figure 2 using CD-SHARE would appear as
  444.      follows :
  445.          ┌──── A:
  446.          │
  447.          ├──── B:
  448.          │
  449.          ├──── C:                                    ┌────────┐
  450.      DOS─┤ ┌────────┐ ┌────────┐ ┌─────┐     ┌─────┐ │        ├─── 0
  451.          └─┤ MSCDEX ├─┤ CDWORK ├─┤ CDR │-----│ CDS ├─┤CDDRIVER├─── 1
  452.            └────────┘ └────────┘ └─────┘  ^  └─────┘ │        ├─── 2
  453.                                           │          └────────┘    ^
  454.                      Network Connection ──┘           Drive Nos.───┘
  455.  
  456.                                   Fig. 3
  457.  
  458.  
  459.                                   Page 5
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.      Where :
  470.                    1. CDWORK is the CD-Share CD-ROM device driver
  471.                    2. CDR is the CD-Redirector
  472.                    3. CDS is the CD-Server
  473.  
  474.      Note that figure three is  a very simple configuration. Each copy
  475.      of  CDS which  is started  on a  CD-Server is  started up  with a
  476.      unique name and can be attached to multiple device drivers on the
  477.      server  computer. Using  CD-Manager (CDM)  each logical  drive on
  478.      CDWORK may be connected to any CDServer\Device\Drive. For Example
  479.  
  480.                    SERVERS         DEVICE DRIVERS       DRIVES
  481.  
  482.                  ┌──────────┐      ┌────────────┐  ┌─────  0
  483.          +-------│ CDSERV-1 ├───┬──┤   DRIVER1  ├──┤
  484.          |       └──────────┘   │  └────────────┘  └─────  1
  485.          |                      │  ┌────────────┐  ┌─────  0
  486.          |                      └──┤   DRIVER2  ├──┼─────  1
  487.          |                         └────────────┘  └─────  2
  488.          |
  489.          |       ┌──────────┐      ┌────────────┐  ┌─────  0
  490.          +-------│ CDSERV-2 ├──────┤   DRIVER1  ├──┼─────  1
  491.          |       └──────────┘      └────────────┘  └─────  2
  492.          |
  493.          |       ┌──────────┐      ┌────────────┐  ┌─────  0
  494.          +-------│ CDSERV-3 ├───┬──┤   DRIVER1  ├──┤
  495.          |       └──────────┘   │  └────────────┘  └─────  1
  496.          |                      │  ┌────────────┐  ┌─────  0
  497.          |                      ├──┤   DRIVER2  ├──┼─────  1
  498.          |                      │  └────────────┘  └─────  2
  499.          |                      │  ┌────────────┐
  500.          |                      └──┤   DRIVER3  ├────────  0
  501.          |                         └────────────┘
  502.          |
  503.          |
  504.          |       WORKSTATION
  505.          |
  506.          |       DEVICE DRIVER       ATTACHED TO        DRIVES
  507.          |
  508.          |                         ┌─CDSERV-1\DRIVER2\2 =  0
  509.          |       ┌─────┐ ┌────────┐│
  510.          +-------│ CDR ├─┤ CDWORK ├┼─CDSERV-3\DRIVER3\0 =  1
  511.                  └─────┘ └────────┘│
  512.                                    └─CDSERV-1\DRIVER1\1 =  2
  513.  
  514.                                   Fig. 4
  515.  
  516.      Note that since CDWORK simulates a CD-ROM device driver, there is
  517.      no need to run MSCDEX on workstations running software that talks
  518.      directly  to  the  CD-ROM  device  driver.  Also  CD-Server  is a
  519.      non-dedicated server, this means that  CDR and CDWORK may also be
  520.      run on the  server which may  then log into  and use devices made
  521.      networkable  by  it's  own  copy of  CD-Serve  as  well  as other
  522.      CD-Servers.
  523.  
  524.  
  525.                                   Page 6
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.      2.0 CONFIGURING A CD-SERVER
  537.  
  538.  
  539.      1.  Install  the  CD-ROM  drives,  controllers,  etc.  and device
  540.          drivers  then test  run  the drives  and  programs as  if the
  541.          system were  not to be  networked to make  sure everything is
  542.          okay before adding the CD-Server.
  543.  
  544.      2.  If you have run  MSCDEX in step 1,  then re-boot the computer
  545.          and DON'T  run MSCDEX. Copy  the CDServer  (CDS.EXE) from the
  546.          CD-Share distribution disk onto your system boot disk.
  547.  
  548.      3.  Make  sure your  network  NETBIOS driver  has  been installed
  549.          (with LANtastic this is  AILANBIO, LANBIOS, or LANBIOS2). You
  550.          won't  need  any  other   networking  software  on  a  CD-ROM
  551.          workstation  or  a CD-Server  in  order to  run  the CD-Share
  552.          programs.   (You   can   still   run   network  re-directors,
  553.          non-dedicated servers, etc. if need be).
  554.  
  555.      4.  Assuming you wish  to allow five logged  in users, have named
  556.          your CD-ROM  device drivers  DRIVER1, DRIVER2,  etc (You will
  557.          have specified the driver names on the "DEVICE=" line for the
  558.          drivers in the  config.sys file. Typical  names take the form
  559.          MSCD001,  MSCD002, etc)  and we  wish to  call our  CD server
  560.          cdserver1 enter the following command line :
  561.  
  562.          CDS CDSERVER1 device=DRIVER1 device=DRIVER2 verbose users=5
  563.  
  564.          The "device=DeviceName" section  may be repeated  up to eight
  565.          times. CD-Serve can handle up  to 32 drives (e.g. four device
  566.          drivers  each driving  eight  drives, or  eight  drivers each
  567.          driving four drives, one driver driving eight drives and four
  568.          drivers driving six  drives, or any  mix). The verbose option
  569.          is optional and causes CDS to indicate the names of connected
  570.          device  drivers  as they  are  attached to  confirm  that the
  571.          command line  was accepted  correctly. The  "device=" section
  572.          may  be  abbreviated to  "d="  to  fit more  switches  on the
  573.          command line.  CDS has more  command line  switches, they are
  574.          covered in the "Advanced Topics" section.
  575.  
  576.          Note  that  after  CDS has  been  run,  all  connected device
  577.          drivers are effectively  removed from the  DOS device list so
  578.          they can't be accessed by any  other software. If you need to
  579.          access  the device  drivers in  order to  gain access  to the
  580.          CD-ROM(s)  from software  running locally  on the  server you
  581.          will have to configure the server as a workstation as well.
  582.  
  583.      3.0 CONFIGURING A CD-WORKSTATION
  584.  
  585.      1.  Copy  the programs  CDWORK.SYS, CDR.EXE  (CD-Redirector), and
  586.          CDM( CD-Manager) onto the workstation disk. CDWORK.SYS should
  587.          be in the root directory, CDR.EXE  and CDM.EXE should be in a
  588.          directory which is on the PATH.
  589.  
  590.  
  591.                                   Page 7
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.      2.  Insert a  line similar  to that  following in  the config.sys
  603.          file on the workstation boot disk :
  604.  
  605.          DEVICE=CDWORK.SYS [DEVICE_NAME]
  606.  
  607.          Where DEVICE_NAME is the name that MSCDEX or any other CD-ROM
  608.          software  will  use  to  access  the  CD-ROM  driver. Typical
  609.          examples might be :
  610.  
  611.          DEVICE=CDWORK.SYS MSCD001
  612.          OR
  613.          DEVICE=CDWORK.SYS CDWORK
  614.  
  615.          We  will  assume  that  the name  CDWORK  is  used  in future
  616.          discussion. Whatever you use, make sure that the name doesn't
  617.          conflict  with a  name  you have  given  to any  other device
  618.          drivers (e.g. if you are setting up a non-dedicated CD-Server
  619.          you will have both CDWORK.SYS  and real CD-ROM device drivers
  620.          installed in the config.sys file).
  621.  
  622.      3.  You will now have to  re-boot the computer so that CDWORK.SYS
  623.          is installed. CDWORK.SYS will sign on with a line similar to
  624.  
  625.          CDWORK Installed - Copyright Digital Solutions
  626.  
  627.          during the boot sequence.
  628.  
  629.      4.  Make  sure  that   your  network  NETBIOS   driver  has  been
  630.          installed. Assuming you wish to call your CD Workstation CDW1
  631.          and  you  wish  to  redirect  to  a  maximum  of  two CDROM's
  632.          simultaneously enter the following command line :
  633.  
  634.          CDR CDW1 2
  635.  
  636.          The actual syntax for the CDR command line is :
  637.  
  638.          CDR [Station Name] {Maximum Drives}
  639.  
  640.          where []  indicates that  the parameter  is mandatory  and {}
  641.          indicates that the switch is optional. If "Maximum Drives" is
  642.          not specified  it defaults to  one. This is  all that usually
  643.          required since CD-Manager (CDM) can be used to disconnect the
  644.          redirected  CD-ROM  drive  from  any  CD  Server  device  and
  645.          re-connect to another at will. Also MSCDEX uses an additional
  646.          4K of memory for each logical drive on a device driver.
  647.  
  648.      5.  You can now use  CDM to connect to  devices and drives on any
  649.          CD-Servers that are on  line. To log into  and connect to our
  650.          CDSERVER1, DEVICE1,  DRIVE 0 that  we set up  in the previous
  651.          section, enter the following command line :
  652.  
  653.          CDM V IN:ON +:0=\\CDSERVER1\DEVICE1\0
  654.  
  655.  
  656.  
  657.                                   Page 8
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.          After  CDM connects  output similar  to the  following should
  668.          appear on the screen :
  669.  
  670.  
  671.          C:\CDM V IN:ON +:0=\\CDSERVER1\DEVICE1\0
  672.  
  673.          DEVICE1            :           Units            =           2
  674.  
  675.          CD - REDIRECTOR STATUS....
  676.  
  677.          Connected                                           servers..
  678.  
  679.                  \\CDSERVER1
  680.  
  681.          Drives..
  682.  
  683.                  Drive 0: Connected to \\CDSERVER1\DEVICE1\0
  684.                  Drive 1: NOT Connected
  685.  
  686.          Total Servers  Attached :  1
  687.          Total Drives   Attached :  1
  688.          Maximum Drives Attached :  2
  689.          Activity  Indicator is  : ON at Row 1, Column 80
  690.  
  691.          C:\
  692.  
  693.                                     Fig. 5
  694.  
  695.          Let's analyze  the command line  to set what  we've done. The
  696.          first switch  V{erbose} tells  CDW to  work in  verbose mode.
  697.          This is why the line
  698.  
  699.                    DEVICE1 : Units = 2
  700.  
  701.          appeared,  and why  the CD  Redirector  status was  listed in
  702.          full.
  703.  
  704.          The next switch
  705.  
  706.                    IN{dicator}:ON
  707.  
  708.          tells CDM  to turn on  the CD  Redirector activity indicator.
  709.          This  causes  a  small activity  indicator  to  flash  on the
  710.          workstation as CD-ROM activity is in progress. By default the
  711.          position of this is  row one, column 80  on the screen (upper
  712.          right corner), see "CDM Command Line Switches" for details on
  713.          how to change this position.
  714.  
  715.          The next switch requires a little more description :
  716.  
  717.  
  718.                    +:0=\\cdserver1\device1\0
  719.  
  720.          The + option tells CDM to  add a new connection to CDWORK, in
  721.  
  722.  
  723.                                   Page 9
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.          this case to a  drive 0, on a device  named "device1" on a CD
  734.          Server named "cdserver1". The actual syntax is as follows :
  735.  
  736.          +:[Local Drive Number]=\\[Server Name]\[Device Name]\Drive
  737.  
  738.          Where a device named "Device Name" be attached to a CD Server
  739.          named "Server Name" and that  device must have a drive number
  740.          "Drive".
  741.  
  742.          If you  now run the  Microsoft extensions  on the workstation
  743.          specifying  the  name  that you  gave  CDWORK.SYS  (we'll use
  744.          CDWORK as the name) you should get the following response :
  745.  
  746.          C:\mscdex /d:cdwork
  747.          MSCDEX Version 2.10
  748.          Copyright  (C) Microsoft  Corp. 1986,  1987, 1988,  1989. All
  749.          rights reserved.
  750.                 Drive D: = Driver CDWORK unit 0
  751.                 Drive E: = Driver CDWORK unit 1
  752.  
  753.          C:\
  754.  
  755.                                     Fig. 6
  756.  
  757.          Note that your drive letters  may not necessarily begin at D:
  758.          depending upon the drives installed  in your computer and any
  759.          redirected network drives you may have.
  760.  
  761.          If you now type :
  762.  
  763.                    DIR D:
  764.  
  765.          You should now get a  directory listing of the root directory
  766.          of the disk in your CD-ROM drive.
  767.  
  768.          Note that if you now type in
  769.  
  770.                    DIR E:
  771.  
  772.          You will  get an error  message from MSCDEX  stating that the
  773.          drive  is  not  ready,  this is  because  drive  E:  which is
  774.          attached to DRIVE  1 on CDWORK  is not connected  to a server
  775.          device (see Fig. 5).
  776.  
  777.          Now that  MSCDEX has  been run  you may  refer to  the CDWORK
  778.          drives by their drive number, or by their MSCDEX drive letter
  779.          when using CDM.
  780.  
  781.          The - CDM command line switch allows a drive connection to be
  782.          removed e.g.
  783.  
  784.          CDM -:0, or CDM -:D
  785.  
  786.          Would cause CDWORK drive 0 (Fig. 5) to be disconnected, or
  787.  
  788.  
  789.                                   Page 10
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.          CDM LOGOUT:CDSERVER1
  801.  
  802.          Would cause all connections to CDSERVER1 to be removed.
  803.  
  804.      4.0 COMMAND LINE SWITCHES
  805.  
  806.      4.1 CD MANAGER COMMAND LINE SWITCHES
  807.  
  808.      The syntax of the CD Manager (CDM.EXE) command line is as follows
  809.  
  810.          CDM {switches}
  811.  
  812.      Where {switches} represents  any of the  following switches, each
  813.      separated by a space. Note  that any characters between {} braces
  814.      are optional, the {}  characters do NOT form  part of the switch.
  815.      Square braces  [] indicate  that the words  between the  [] are a
  816.      name  and should  not be  entered as  shown. i.e.  The name  of a
  817.      Device, CD Server, or Drive  Number should be substituted for the
  818.      [name]  entry  (the  []  characters  are  not  required.  e.g. To
  819.      indicate  that a  device name  is required  we might  say [Device
  820.      Name], when CDM is  actually run we might  use DEVICE1 instead of
  821.      [Device Name]. In all cases a  = character may be substituted for
  822.      the : character in the following list.
  823.  
  824.      Switch        Function
  825.      
  826.      V{erbose}     Causes verbose  operation of  CDM. CDM  will report
  827.                    various activities  as they are  processed and will
  828.                    cause CDM  to show  a CD  Redirector status listing
  829.                    after all other switches have been processed.
  830.  
  831.      Sh{ow}        Causes CDM  to display  CD Redirector  status after
  832.                    all other switches have been processed.
  833.  
  834.      Logo{ut}:     Syntax
  835.  
  836.                    Logout:Server_Name
  837.  
  838.                    Causes all  CDWORK drive  connections to  CD Server
  839.                    "Server_Name" to  be deleted and  the connection to
  840.                    "Server_Name" to be removed.
  841.  
  842.      +:            Syntax
  843.  
  844.                    +:[Local Drive]=\\[ServerName]\[DeviceName]\[Drive]
  845.  
  846.                    Attaches the CDWORK drive  [Local Drive] to [Drive]
  847.                    on a device named [DeviceName] on a CD Server named
  848.                    [ServerName].  For [Local  Drive] either  the local
  849.                    CDWORK drive number or the drive letter may be used
  850.                    if MSCDEX has been run.  [Drive] may be replaced by
  851.                    ALL if you  want all of  the drives on [DeviceName]
  852.                    to  be  attached to  CDWORK  beginning  with CDWORK
  853.  
  854.  
  855.                                   Page 11
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.  
  864.  
  865.                    drive [Local Drive]. e.g.  to Connect local drive 1
  866.                    to   [Drive]   2   on   [DeviceName]   MSCD001   on
  867.                    [ServerName] CDSERVER1  the following  switch would
  868.                    be used
  869.  
  870.                    +:1=\\CDSERVER1\MSCD001\2
  871.  
  872.                    If  MSCDEX  had  been run  and  Local  Drive number
  873.                    corresponded to drive E:  then the following syntax
  874.                    could also have been used
  875.  
  876.                    +:E=\\CDSERVER1\MSCD001\2
  877.  
  878.      -:            Syntax
  879.  
  880.                    -:[Local Drive]
  881.  
  882.                    Disconnects  [Local Drive]  from  the device  it is
  883.                    currently attached to. [Local  Drive] may be either
  884.                    the  CDWORK  logical  drive  (unit)  number  or the
  885.                    MSCDEX drive name if MSCDEX has been run.
  886.  
  887.      Dr{ives}      Syntax
  888.  
  889.                    Drives:[New Number of Local Drives]
  890.  
  891.                    Alters the number of logical drives that CDWORK can
  892.                    redirect.  This  switch  will  not  be  accepted if
  893.                    MSCDEX has already been run.
  894.  
  895.      In{dicator}   Syntax
  896.  
  897.                    Indicator:[On|Off]{@Row,Column}
  898.  
  899.                    Turns the  CD Redirector  activity indicator  On or
  900.                    Off depending upon whether  On, or Off is specified
  901.                    after the : . If On is specified you may optionally
  902.                    specify the screen coordinates by following On with
  903.                    @Row,Column ; where valid ranges for row and column
  904.                    are 1 to  25 and 1 to  80 respectively. The default
  905.                    position for the indicator  is 1,80. For example to
  906.                    turn  the indicator  on at  row  25, column  80 the
  907.                    following switch would be used
  908.  
  909.                    in:on@25,80
  910.  
  911.                    or to turn it off
  912.  
  913.                    in:off
  914.  
  915.                    Note  that  if  in:on is  specified  without  a new
  916.                    position,  then  the previous  position  setting is
  917.                    retained.
  918.  
  919.  
  920.  
  921.                                   Page 12
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.      4.2 CD REDIRECTOR COMMAND LINE
  933.  
  934.      The CD  Redirector (CDR.EXE) command  line must  contain a unique
  935.      name for  the CD Redirector  session and can  contain an optional
  936.      number of Local Drives specifier for CDWORK.
  937.  
  938.      CDR [Unique Name] {Number of Local Drives}
  939.  
  940.      e.g.
  941.  
  942.      CDR STN1 1
  943.  
  944.      The  number of  local drives  defaults to  one if  not specified.
  945.      Since MSCDEX uses an extra 4K of ram per local drive, a figure of
  946.      1 is recommended  if MSCDEX is  to be used.  Since it is unlikely
  947.      that  a  workstation  will  be  accessing  more  than  one CD-ROM
  948.      simultaneously this  does not impose  a limitation as  CDM can be
  949.      used to alter the actual CD-ROM drive that the single local drive
  950.      is connected to at any time.
  951.  
  952.      Note that  providing MSCDEX hasn't  been run CDM.EXE  can also be
  953.      used to alter the number of local drives.
  954.  
  955.      CDR can be  logged into a maximum  of five CD  Servers at any one
  956.      time. Local Drives can range from one to twenty five.
  957.  
  958.      4.3 CD-SERVER COMMAND LINE SWITCHES
  959.      
  960.      The syntax of the CD Server (CDS.EXE) command line is as follows
  961.  
  962.          CDS [Server_Name] device=device_name {switches}
  963.  
  964.      [Server_Name] a  unique name  which is  used to  represent the CD
  965.      Server on the network. At least one device must be specified.
  966.  
  967.      Where {switches} represents  any of the  following switches, each
  968.      separated by a space. Note  that any characters between {} braces
  969.      are optional, the {}  characters do NOT form  part of the switch.
  970.      Square braces  [] indicate  that the words  between the  [] are a
  971.      name  and should  not be  entered as  shown. i.e.  The name  of a
  972.      Device, CD Server, or Drive  Number should be substituted for the
  973.      [name]  entry  (the  []  characters  are  not  required.  e.g. To
  974.      indicate  that a  device name  is required  we might  say [Device
  975.      Name], when CDS is  actually run we might  use DEVICE1 instead of
  976.      [Device Name]. In all cases a  = character may be substituted for
  977.      the : character in the following list.
  978.  
  979.      Switch        Function
  980.  
  981.      D{evice}      Syntax
  982.  
  983.                    Device:[Device_Name]
  984.  
  985.  
  986.  
  987.                                   Page 13
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.                    where [Device_Name] is the named of a CD-ROM device
  998.                    driver already installed on the server. This switch
  999.                    may be used a maximum  of eight times connecting to
  1000.                    a  maximum of  32  drives per  server  (each device
  1001.                    driver can  handle multiple  drives -  the total of
  1002.                    these drives must not exceed 32). Device drivers to
  1003.                    which CDS attaches are  removed from the DOS device
  1004.                    list  so other  programs can  no longer  access the
  1005.                    device(s).
  1006.  
  1007.      Us{ers}       Syntax
  1008.  
  1009.                    Users:[Maximum Number of logged in CD users]
  1010.  
  1011.                    Note that  a NETBIOS  session is  required for each
  1012.                    logged  in  user.  CDS  DOES  NOT  check  that your
  1013.                    NETBIOS   can  support   the  number   of  sessions
  1014.                    corresponding  to your  Users specification,  it is
  1015.                    the  responsibility  of the  network  configurer to
  1016.                    ensure  that   enough  netbios   sessions  will  be
  1017.                    available. (Up to 254 with LANtastic)
  1018.  
  1019.      Bu{ffer}      Syntax
  1020.  
  1021.                    Buffer:[Buffer Size in sectors]
  1022.  
  1023.                    e.g. Buffer:4
  1024.  
  1025.                    Specifies the  size of the  network transfer buffer
  1026.                    used to  pass CD ROM  data to  CD workstations. The
  1027.                    actual  buffer  size  is  approximately  2K  by the
  1028.                    specified buffer  size. The default  Buffer Size is
  1029.                    three  sectors (about  6K). Larger  buffers improve
  1030.                    performance  but  use  more   memory  when  CDS  is
  1031.                    installed leaving  less room for  other programs to
  1032.                    run (This is not a  consideration when running a CD
  1033.                    Server in dedicated mode).  Note that one buffer is
  1034.                    allocated PER network task (see "Tasks")
  1035.  
  1036.      Ta{sks}       Syntax
  1037.  
  1038.                    Tasks:[Number of Network Tasks]
  1039.  
  1040.                    e.g. Tasks:3
  1041.  
  1042.                    The  network  tasks   figure  determines  how  many
  1043.                    network   CD   requests  the   server   can  handle
  1044.                    simultaneously.   The   default   is   one.   On  a
  1045.                    non-dedicated server the law of diminishing returns
  1046.                    is reached at  a figure of  about five tasks. Three
  1047.                    tasks  is usually  adequate, use  two if  memory is
  1048.                    tight.
  1049.      5.0 CACHING YOUR CD-ROM DRIVES - CD-CACHE
  1050.  
  1051.  
  1052.  
  1053.                                   Page 14
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.      CD-CACHE is  a caching program  specifically designed  to work in
  1064.      conjunction with CD-Serve on a CD-ROM server. Because of the slow
  1065.      access times of CD-ROM drives use of CD-CACHE is almost essential
  1066.      if three or  more than three  users will be  accessing the CD-ROM
  1067.      simultaneously.  In fact  using  CD-CACHE will  usually  speed up
  1068.      response times even when only one user is accessing the CD-ROM.
  1069.  
  1070.      CD-CACHE can use conventional,  extended, expanded, or XMS memory
  1071.      for caching purposes  CD-CACHE will  cache any accesses to any of
  1072.      the CD-ROM drives  (i.e. up to  32) that are  being managed by CD
  1073.      Serve (CDS.EXE).
  1074.  
  1075.      Like CDS.EXE CD-CACHE (CDC.EXE) is a TSR program. This means that
  1076.      when you run CDC from the command line it will install itself and
  1077.      return to the DOS prompt while  remaining in memory to perform CD
  1078.      caching as necessary. CDC will not install unless CDS has already
  1079.      been installed.
  1080.  
  1081.      CDC has a number of command line switches, the two that will most
  1082.      commonly be used are those that specify the type of memory CDC is
  1083.      to use for caching  purposes and the amount  of memory to use for
  1084.      caching.
  1085.  
  1086.      The syntax of the CD Cache (CDC.EXE) command line is as follows
  1087.  
  1088.          CDC {switches}
  1089.  
  1090.      Where {switches} represents  any of the  following switches, each
  1091.      separated by a space. Note  that any characters between {} braces
  1092.      are optional, the {}  characters do NOT form  part of the switch.
  1093.      Square braces  [] indicate  that the words  between the  [] are a
  1094.      name and should not be entered  as shown. i.e. A number of KBytes
  1095.      of memory to be used would  be substituted for the [Cache Size in
  1096.      Kbytes] entry  (the [] characters  are not required.  When CDC is
  1097.      actually run we might use 1000 instead of [Cache Size in KBytes].
  1098.      In all cases a = character may be substituted for the : character
  1099.      in  the  following  list.  Command  line  switches  are  not case
  1100.      sensitive, i.e. TYPE is the same as Type or typE.
  1101.  
  1102.      Switch        Function
  1103.  
  1104.      Type          Syntax
  1105.  
  1106.                    Type:{Conv|Ext|Ems|Xms}
  1107.  
  1108.                    e.g.
  1109.  
  1110.                    TYPE:CONV  means to  use conventional memory (below
  1111.                    the 640K boundary) for caching.
  1112.  
  1113.                    TYPE:EXT for Extended Memory
  1114.                    TYPE:EMS for Expanded memory
  1115.                    TYPE:XMS for XMS memory
  1116.  
  1117.  
  1118.  
  1119.                                   Page 15
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.                    The default  is Conventional  if no  TYPE switch is
  1130.                    used.
  1131.  
  1132.      Size          Syntax
  1133.  
  1134.                    Size:[Cache Size in KBytes]
  1135.  
  1136.                    e.g. type:1000 for  a 1MByte cache.  The default is
  1137.                    to use ALL of the specified type of cache memory if
  1138.                    no size switch  is found. Note that  if you use all
  1139.                    of conventional memory as cache it is preferable to
  1140.                    use the Dedicate CDC switch  to cause the CD Server
  1141.                    to  run  dedicated,  this will  always  use  all of
  1142.                    conventional   memory  for   caching  as   well  as
  1143.                    improving performance dramatically  and leaving you
  1144.                    the  option of  unloading CDC  at any  time without
  1145.                    re-booting the  CD Server.  See the  "Dedicate" CDC
  1146.                    switch  for more  detail. If  you run  CD-CACHE not
  1147.                    dedicated and use all available conventional memory
  1148.                    for caching  there will  be NO  MEMORY LEFT  TO RUN
  1149.                    OTHER PROGRAMS.
  1150.  
  1151.      Ded{icate}    Causes CD Cache  to run the  CD-Server in dedicated
  1152.                    mode.    This   improves    CD-Server   performance
  1153.                    dramatically  (5  to  10  fold)  and  will  add any
  1154.                    remaining  conventional memory  available  after CD
  1155.                    Cache has loaded  to the cache  memory. E.G. if you
  1156.                    have specified  1MByte of extended  memory as cache
  1157.                    and  use the  dedicate switch,  and CD  Cache finds
  1158.                    that 500K  of conventional  memory remain available
  1159.                    after it has  loaded - your  total cache size would
  1160.                    be  1.5MBytes. When  CD Cache  is run  in dedicated
  1161.                    mode pressing the Esc key on the CD-Server keyboard
  1162.                    will unload CD Cache and  return to the DOS command
  1163.                    line,  leaving the  CD  Server as  a non-dedicated,
  1164.                    non-cached  (as  far  as  CD  ROM's  are concerned)
  1165.                    server.
  1166.  
  1167.      Buff{er Sectors}
  1168.                    Syntax
  1169.  
  1170.                    Buffer:{Buffer Size in Sectors}
  1171.  
  1172.                    When CD-Cache  performs any CD-ROM  reads it ALWAYS
  1173.                    reads the same number  of sectors into cache memory
  1174.                    then returns the requests sectors from the cache to
  1175.                    CD Server. For optimum  performance the Buffer Size
  1176.                    set for CD-Cache  should be a  multiple of that set
  1177.                    for CD  Serve. The  default for  CD Serve  is three
  1178.                    sectors and the default for CD-CACHE is six. As you
  1179.                    can see the  default of six for  CD-Cache will be a
  1180.                    multiple of Buffer  settings for CD  Server of one,
  1181.                    two,  or  three sectors.  The  maximum  buffer size
  1182.                    setting is 25 sectors  (about 64KBytes). The buffer
  1183.  
  1184.  
  1185.                                   Page 16
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.                    size you choose will be determined by the amount of
  1196.                    conventional and  cache memory  you are  willing to
  1197.                    let CD-Cache  use and  the performance  you require
  1198.                    from the server. See  the "Advanced Topics" section
  1199.                    for  information on  how to  make decisions  on the
  1200.                    best  combinations  of  options  to  select  for CD
  1201.                    Server  and CD  Cache  to optimize  performance for
  1202.                    your application.
  1203.  
  1204.      An example  command line for  running CD Cache  in dedicated mode
  1205.      using 2 MBytes of extended memory would be as follows :
  1206.  
  1207.      CDC Type:Ext Size:2000
  1208.  
  1209.      6.0 ADVANCED TOPICS
  1210.  
  1211.      6.1 MEMORY USAGE
  1212.  
  1213.      The amount  of conventional memory  used by the  various CD Share
  1214.      programs and MSCDEX after being loaded is listed below.
  1215.  
  1216.      NOTE: 1K = 1024 Bytes
  1217.  
  1218.      PROGRAM       MEMORY USED
  1219.  
  1220.      CDWORK.SYS    < 650 Bytes
  1221.      CDR.EXE       8 KBytes
  1222.  
  1223.      CDS.EXE       12K + Users * 106 + Tasks * (BufferSecs*2532 + 225)
  1224.  
  1225.                    e.g. 10 Users, 2 tasks, 5 sectors per buffer =
  1226.  
  1227.                    12K + 10 * 106 + 2 * ( 5 * 2532 + 225)
  1228.  
  1229.                    = 39118 Bytes
  1230.                    = 38.2 K
  1231.  
  1232.      CDC.EXE       Conventional Cache :
  1233.  
  1234.                        12K + Size of Cache
  1235.  
  1236.                    Other               :
  1237.  
  1238.                        Buffer Size Bytes(BSB) = BufferSectors * 2532
  1239.                        Buffers in Cache (BIC) = CacheSize/BSB
  1240.  
  1241.                        Conventional Memory used = 12K + BIC*34 + BSB
  1242.  
  1243.                        e.g. Cache Size = 2MBytes of Extended Memory
  1244.                             BufferSectors = 6
  1245.  
  1246.                        BSB = 6 * 2532 = 15192 Bytes
  1247.                        BIC = (2000 * 1024)/15192 = 134(.8)
  1248.  
  1249.  
  1250.  
  1251.                                   Page 17
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.                        Conv Mem Used = 12K + 134*34 + 15192
  1262.                                      = 31012 Bytes
  1263.                                      = 30.3 K
  1264.  
  1265.  
  1266.  
  1267.      MSCDEX.EXE    22K + 4K per logical  drive (e.g. one device driver
  1268.                    controlling 2 drives  would use approximately 30K).
  1269.                    This will vary slightly according to the version of
  1270.                    MSCDEX.
  1271.  
  1272.      6.2 OPTIMIZING CD-SERVE PARAMETERS FOR A NON-DEDICATED SERVER
  1273.  
  1274.      For a non-dedicated CD  Server we are assuming  that you want the
  1275.      server to use as  little memory as possible.  As with most things
  1276.      in real life you rarely get  something for nothing - the more you
  1277.      prune back  the resources  available to  CD Serve  the poorer the
  1278.      performance will  be. The trick  is to strike  a compromise which
  1279.      gives both acceptable memory usage and acceptable performance.
  1280.  
  1281.      As  you can  see  from the  CDS.EXE  section in  section  6.1 CDS
  1282.      conventional memory usage is governed by three parameters
  1283.  
  1284.          1. Users
  1285.          2. Buffer Sectors
  1286.          3. Tasks
  1287.  
  1288.      Obviously you should only specify the number of CD users that you
  1289.      actually want the CD  Server to be able  to have connected at any
  1290.      one time.
  1291.  
  1292.      The "Buffer  Sectors" parameter  defines the  size of  the memory
  1293.      buffer that CDS  uses to return  CD ROM data  to a CD Redirector.
  1294.      The larger this parameter  is made (Max 25)  the larger the block
  1295.      of data that the server can send to the CD Redirector in one hit.
  1296.      However the maximum figure of 25 sectors amounts to a buffer size
  1297.      of about 64K and there is  one buffer allocated per network task,
  1298.      as  you can  see  allocating large  buffers  and tasks  can quite
  1299.      quickly gobble up huge amounts of memory.
  1300.  
  1301.      The number of tasks determines  how many CD network requests that
  1302.      the  CD Server  can  process at  any  one time.  Performance will
  1303.      improve  as  the  number  of  tasks  is  increased.  The  law  of
  1304.      diminishing returns  is reached for  a non-dedicated  server at a
  1305.      figure of about five tasks.
  1306.  
  1307.      The question then  arises as to  which combination is  best for a
  1308.      non-dedicated server. The  answer of course  lies in the question
  1309.      "how much memory do you want left over after CDS has been run and
  1310.      what  level  of   performance  are  you   going  to  consider  as
  1311.      satisfactory ?". For minimum memory usage both the Buffer Sectors
  1312.      and  Tasks should  be reduced  to a  minimum. The  default buffer
  1313.      sectors setting  is three,  a setting of  two is  probably a good
  1314.      starting  point if  you  a trying  to  minimize memory  usage and
  1315.  
  1316.  
  1317.                                   Page 18
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.      maintain reasonable performance. A Tasks setting of two will give
  1328.      a  fairly  substantial  improvement  over  the  default  of  one,
  1329.      improvements will be gradually decreasing  as the number of tasks
  1330.      is increased through three, four, and five.
  1331.  
  1332.      With  this  background  experimentation   is  probably  the  best
  1333.      indicator of what  will be acceptable  for your application. When
  1334.      evaluating   performance  it   should  be   noted  that   CD  ROM
  1335.      applications  usually  have  long   periods  of  disk  inactivity
  1336.      interspersed  with short  bursts  of activity  when  programs and
  1337.      images are  loaded from  the CD ROM.  A simple  method of gauging
  1338.      performance is to create a batch file on a number of workstations
  1339.      which  reads a  large  number of  files  from the  CD-ROM  into a
  1340.      temporary file  on a hard  disk, deletes the  temporary file then
  1341.      loops to the beginning - timing  the loop will give an indication
  1342.      of performance. If you have this  arrangement set up and you wish
  1343.      to re-boot  the server  in order  to alter  CDS parameters  it is
  1344.      quite acceptable to simply re-boot the server. Each CD Redirector
  1345.      will  eventually report  an error  and MSCDEX  will give  you the
  1346.      options Abort, Retry, or Ignore. After CDS has been re-run on the
  1347.      CD  Server  simply  select   Retry  and  the  CD-Redirector  will
  1348.      re-connect to the server and continue.
  1349.  
  1350.      6.3 OPTIMIZING CD-CACHE PARAMETERS
  1351.  
  1352.      We will assume here  that for a non-dedicated  CD Server CD Cache
  1353.      will always  be run  using cache  memory other  than conventional
  1354.      memory;  since you  would  have to  use  all of  the conventional
  1355.      memory in order to make  the cache of any use  and if you do this
  1356.      you might  as well run  the CD  Server in dedicated  mode and get
  1357.      some real performance improvements !
  1358.  
  1359.      As you  can see  from the  calculations for  CDC.EXE conventional
  1360.      memory usage  when using  extended memory,  the additional memory
  1361.      that CDC uses beyond it's fixed code  and data size is made up of
  1362.      two components
  1363.  
  1364.          1. A  single  buffer  the  size   of  which  is  set  by  the
  1365.             "BufferSectors" command  line switch.  The default setting
  1366.             for this is 6 sectors or about 15 KBytes.
  1367.  
  1368.          2. Cache Buffer management  memory which amounts  to 34 bytes
  1369.             for each time the buffer allocated at step 1 will fit into
  1370.             the cache memory size.
  1371.  
  1372.      From step 2  we can see that  for a given  amount of cache memory
  1373.      the amount of  cache management memory  required increases as the
  1374.      "Buffer Sectors" setting decreases. In the example calculation of
  1375.      section 6.1 for 2MByte  of cache memory and  6 sectors per buffer
  1376.      we used  134 *  34 Bytes  = 4556  bytes for  cache management and
  1377.      15192 bytes for the buffer  for a total extra conventional memory
  1378.      usage  of 19748  Bytes. If  we  halved the  buffer size  to three
  1379.      sectors we could used  269 * 34 =  9146 Bytes for management plus
  1380.      7596 bytes for buffering  for a total of  16742 bytes. As you can
  1381.  
  1382.  
  1383.                                   Page 19
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.      see we have  only reduced the  consumption of conventional memory
  1394.      by 3K  but we  have more  than doubled  the fragmentation  of the
  1395.      cache.
  1396.  
  1397.      As a general rule, the larger  the Buffers per Sector setting the
  1398.      better as  it allows  the CD-ROM  to read  more information  in a
  1399.      single disk read thus eliminating a seek from another position on
  1400.      the  disk  when  sequential sectors  are  read  from  the server.
  1401.      However a quick glance at some files on a CD-ROM will reveal that
  1402.      many of  the files  (and the directories  if you  could see their
  1403.      size) are actually less than 20K in length. This means that since
  1404.      there is  usually very  little file  fragmentation many  of these
  1405.      files could be  read with a  single access from  the CD ROM. Note
  1406.      that although CD-CACHE allocates 2532 bytes per sector so that it
  1407.      can cope with CD-ROM applications that request sector data in RAW
  1408.      mode (2532 bytes per sector) most applications read the CD-ROM in
  1409.      cooked mode which returns  2048 bytes per sector  (2K). Thus a 12
  1410.      sector buffer would  generally read 24K  bytes per read. Although
  1411.      CD-CACHE will accept buffer sizes  up to 25 sectors, using values
  1412.      above 12 decreases  the granularity of the  cache for very little
  1413.      improvement in performance.
  1414.  
  1415.      For  optimum  performance the  Buffer  size  should be  set  to a
  1416.      multiple of the BufferSectors setting  used with CDS. The default
  1417.      CD-CACHE  buffer size  is  set to  six  sectors, this  is  a good
  1418.      compromise between conventional memory usage and performance, and
  1419.      is also a  multiple of the  default CD-SERV buffer  size of three
  1420.      sectors (Also of 2, and 1 !).
  1421.  
  1422.  
  1423.      You should choose your buffer  sectors setting with the following
  1424.      things in mind:
  1425.  
  1426.          1. If  you  are  caching a  large  number  of  drives running
  1427.             different  applications,  then  for  a  given  cache  size
  1428.             smaller buffers  are going to  increase buffer granularity
  1429.             and therefore more  likely to keep  more of the frequently
  1430.             used sections of each CD-ROM in the cache.
  1431.  
  1432.          2. If  you don't  have  much memory  to  use as  cache memory
  1433.             smaller buffers  are better as  this will  help to improve
  1434.             the granularity.
  1435.  
  1436.          3. If you  have plenty of  cache memory in  comparison to the
  1437.             number  of CD-ROM's  that are  being  cached then  you can
  1438.             increase the buffer size to improve performance and reduce
  1439.             CD-ROM  drive wear  and  tear while  still  achieving good
  1440.             granularity.
  1441.  
  1442.          4. If you are running CD-CACHE in non-dedicated mode then you
  1443.             should choose a buffer size which results in an acceptable
  1444.             compromise   between   conventional    memory   used   and
  1445.             granularity
  1446.  
  1447.  
  1448.  
  1449.                                   Page 20
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.      6.4 RUNNING CD-SERVE AND CD-CACHE IN DEDICATED MODE
  1460.  
  1461.      If you  want the ultimate  in performance -  dedicate your CD-ROM
  1462.      Server !
  1463.  
  1464.      When using CD-CACHE you  can optionally tell it  to run CD Server
  1465.      in dedicated mode. This will  give an immediate speed improvement
  1466.      of  usually at  least five  hundred percent  as well  as allowing
  1467.      CD-CACHE to add  all remaining conventional  memory to it's cache
  1468.      buffers.
  1469.  
  1470.      As a bonus  you can unload  CD-CACHE and return  the CD-Server to
  1471.      non-dedicated/non-cached operation at the  touch of a key without
  1472.      disturbing  and other  network users  using  the CD-ROM's  on the
  1473.      server.
  1474.  
  1475.      To run in dedicated mode  simply include the "Dedicate" switch on
  1476.      the CD-Cache command line as follows :
  1477.  
  1478.  
  1479.      CDC Type:Extended Size:2000 Dedicated
  1480.  
  1481.      CD-Cache will respond with a  message saying that it is installed
  1482.      and running CD-Serve in dedicated mode.
  1483.  
  1484.      To  unload  CD-Cache  and   return  to  non-dedicated  CD  Server
  1485.      operation simply press  the Esc key. Network  users logged in and
  1486.      using the CD-ROM at this time will notice nothing excepting for a
  1487.      dramatic decrease in performance.
  1488.  
  1489.      If a computer is being used specifically as a dedicated CD Server
  1490.      in order to share multiple CD ROM's with maximum performance then
  1491.      the  memory  constraints  which  are  important  when  running in
  1492.      non-dedicated  mode lose  there importance.  The CD  Serve buffer
  1493.      size should be increased to about  six sectors and tasks to about
  1494.      five. The  CD-CACHE buffer  size should also  be set  to at least
  1495.      twelve sectors (you should install plenty of cache memory).
  1496.  
  1497.      Read sections 6.2 and 6.3 (if you haven't already done so) to get
  1498.      a good understanding of  the performance consequences of altering
  1499.      the CD-Serve and CD-Cache buffer sizes.
  1500.  
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515.                                   Page 21
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.      7.0 QUESTIONS AND ANSWERS
  1527.  
  1528.      Question :    Does  a network  computer need  to be  set up  as a
  1529.                    network  server  or  have  a  redirector  or MSCDEX
  1530.                    installed in order to be used as a CD-Server.
  1531.  
  1532.      Answer   :    No - All  that is required of  the network in order
  1533.                    to run CD Serve on  a computer is a NETBIOS network
  1534.                    driver.
  1535.  
  1536.      Question  :   Do I need to run the network redirector on a CD ROM
  1537.                    workstation.
  1538.  
  1539.      Answer    :   No -  All that  is required  on the  workstation is
  1540.                    that CDWORK.SYS is included and given a device name
  1541.                    in the CONFIG.SYS file on the workstation boot disk
  1542.                    and   that  network   NETBIOS  network   driver  is
  1543.                    installed before running CDR.EXE.
  1544.  
  1545.      Question  :   Do I need to run MSCDEX on a CD-ROM workstation.
  1546.  
  1547.      Answer    :   Only  if your  CD-ROM application  requires MSCDEX.
  1548.                    Many CD-ROM applications  install themselves on the
  1549.                    workstation hard disk then  interface to the CD-ROM
  1550.                    directly via the device  driver (CDWORK.SYS in this
  1551.                    case)  -  these applications  usually  only require
  1552.                    MSCDEX for  the initial installation  (i.e. to copy
  1553.                    the  program  files  from the  CD-ROM  to  the hard
  1554.                    disk).
  1555.  
  1556.      Question  :   Can I  use a  CD-ROM workstation  to perform normal
  1557.                    network   activities   by   running   the   network
  1558.                    redirector.
  1559.  
  1560.      Answer    :   Yes - the CD Redirector and CDWORK appear simply as
  1561.                    another device  driver to  both the  network and to
  1562.                    DOS.
  1563.  
  1564.      Question  :   Can I  run CD  Serve in  dedicated or non-dedicated
  1565.                    mode on a normal non-dedicated network server (e.g.
  1566.                    LANtastic)
  1567.  
  1568.      Answer    :   Yes,  although the  activities  of the  two servers
  1569.                    will serve to  reduce the performance  of both when
  1570.                    running under heavy load conditions.
  1571.  
  1572.      Question  :   I cannot run my  normal network redirector up after
  1573.                    running CDR and MSCDEX
  1574.  
  1575.      Answer    :   MSCDEX  is  implemented as  a  network re-director.
  1576.                    Your network redirector sees MSCDEX as a previously
  1577.                    installed   network  redirector   and   refuses  to
  1578.                    install. The solution  is to run  MSCDEX after your
  1579.  
  1580.  
  1581.                                   Page 22
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.                    network  redirector  (and  before  your  server  if
  1592.                    running the  machine up as  a non-dedicated network
  1593.                    server e.g. LANtastic's SERVER.EXE).
  1594.  
  1595.      Question  :   After running MSCDEX I  don't have enough memory to
  1596.                    run my CD-ROM program.
  1597.  
  1598.      Answer    :   MSCDEX uses an  extra 4K of  memory for every drive
  1599.                    on every device driver it is attached to. Make sure
  1600.                    that when running CDR.EXE or CDM.EXE that you don't
  1601.                    set the number of drives supported by CD Redirector
  1602.                    to more than one. You can then use CDM.EXE to alter
  1603.                    this one  logical CD-ROM drive  to different CD-ROM
  1604.                    drives on any CD Servers on the network as and when
  1605.                    required.
  1606.  
  1607.      Question  :   After I run MSCDEX I get devices with names like
  1608.  
  1609.                              G.\A.
  1610.                              H.\B.
  1611.                              I.\C.
  1612.  
  1613.                    In   my  network   connection  manager's   list  of
  1614.                    redirected   drives   and   I   can't   remove  the
  1615.                    connection.
  1616.  
  1617.      Answer    :   MSCDEX functions  in exactly  the same  way as your
  1618.                    network redirector  - it  uses the  DOS redirection
  1619.                    functions and  therefore the  CD-ROM logical drives
  1620.                    appear in  the list  of redirected  drives. Because
  1621.                    your network redirector  doesn't recognize these as
  1622.                    it's own  re-directed drives  it won't  alter these
  1623.                    connections.
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.                                   Page 23
  1648.  
  1649.  
  1650.  
  1651.